import request from '@/common/http'

export default {
  // 热门提问
  hotList(data,loading) {
    return request.GET('/question-template/hot-list',data,loading)
  },
  // 提问模版列表
  list(data,loading) {
    return request.GET('/question-template/list',data,loading)
  },
  // 首页模版列表
  templateList(data,loading) {
    return request.GET('/question-template/template-list',data,loading)
  },
  // 问答中心
  questionTemplateIndex(data,loading) {
    return request.GET('/question-template/index',data,loading)
  },
  // 积分套餐列表
  integralRechargeList(data,loading) {
    return request.GET('/integral-recharge/list',data,loading)
  },
  // 积分套餐提交
  integralRechargeSubmit(data,loading) {
    return request.POST('/integral-recharge/submit',data,loading)
  },
  // chart提问
  questionTemplateQuestion(data,loading) {
    return request.POST('/question-template/question',data,loading)
  },
  // 问答记录
  questionList(data,loading) {
    return request.GET('/question-template/question-list',data,loading)
  },
	// 删除记录
	delQuestion(data,loading) {
	  return request.POST('/question-template/del-question',data,loading)
	},
	// 增加积分
	addIntegral(data,loading) {
	  return request.GET('/question-template/add-integral',data,loading)
	},
}
